; PDF Splitter Installer Script
; Requires Inno Setup 6 or later to compile

[Setup]
AppName=PDF Splitter
AppVersion=0.1.0
AppPublisher=PDF Splitter
AppPublisherURL=https://gitcode.com/beinimaliesi/PDF_Splitter
AppSupportURL=https://gitcode.com/beinimaliesi/PDF_Splitter/issues
AppUpdatesURL=https://gitcode.com/beinimaliesi/PDF_Splitter

DefaultDirName={autopf}\PDF Splitter
DefaultGroupName=PDF Splitter
AllowNoIcons=yes
LicenseFile=COPYING.txt
OutputDir=installer
OutputBaseFilename=PDF_Splitter_Setup_v0.1.0
Compression=lzma2/max
SolidCompression=yes
WizardStyle=modern
PrivilegesRequired=admin

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "chineses"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "dist\PDF_Splitter.exe"; DestDir: "{app}"; Flags: ignoreversion
; Note: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\PDF Splitter"; Filename: "{app}\PDF_Splitter.exe"
Name: "{commondesktop}\PDF Splitter"; Filename: "{app}\PDF_Splitter.exe"; Tasks: desktopicon

[Run]
Filename: "{app}\PDF_Splitter.exe"; Description: "{cm:LaunchProgram,PDF Splitter}"; Flags: nowait postinstall skipifsilent

[UninstallDelete]
Type: filesandordirs; Name: "{app}"
